package TimeSqueeze.logic;
import TimeSqueeze.common.*;
import TimeSqueeze.storage.TempStorage;

// By James Ho

public class AddTimedCommand implements CommandInterface {
	
	public TaskInterface parameters;
	public String commandType;

	public AddTimedCommand(TimedTask paras) {
		commandType = "add";
		parameters = paras;
	}
	
	public AddTimedCommand(TaskInterface paras) {
		commandType = "add";
		parameters = paras;
	}
	
	@Override
	public void execute() {
		// TODO Auto-generated method stub
		TempStorage.addToTimed(parameters);
		TempStorage.updateFile();

	}

	@Override
	public void undo() {
		// TODO Auto-generated method stub

	}

}
